<div class="header-bar-container">
    <div class="content-box">
        <a href="index.php">
            <div class="home-button"></div>
        </a>
        <div class="logo"></div>
        <a href="tel:4006196158">
            <div class="phone-button"></div>
        </a>
    </div>
</div>
<div class="menu-container">
    <a href="tech.php">
        <div class="element">
            <div class="text">3D纹发</div>
            <div class="decoration"></div>
        </div>
    </a>
    <a href="effect.php">
        <div class="element">
            <div class="text">纹发效果</div>
            <div class="decoration"></div>
        </div>
    </a>
    <a href="news.php">
        <div class="element">
            <div class="text">纹发资讯</div>
            <div class="decoration"></div>
        </div>
    </a>
    <a href="group.php">
        <div class="element">
            <div class="text">黑米国际</div>
            <div class="decoration"></div>
        </div>
    </a>
    <a href="aboutus.php">
        <div class="element">
            <div class="text">联系我们</div>
            <div class="decoration"></div>
        </div>
    </a>
</div>
<script>
    $(document).ready(function() {
        $(".menu-container").find(".decoration").hide();
        $(".menu-container").find(".element").find(".text").removeClass("active");
        var page = window.location.href.split("/")[window.location.href.split("/").length - 1].split(".")[0].split("-")[0];
        $(".menu-container").find("a").each(function() {
            if ($(this).attr("href").split(".")[0] === page) {
                $(this).find(".element").find(".decoration").show();
                $(this).find(".element").find(".text").addClass("active");
            }
        })
    })
</script>